package com.portal.framework.common.lang;

import java.text.MessageFormat;

public class ObjectPair<VC, AC> {

	// 值
	private VC value;

	// 属性
	private AC attribute;

	public ObjectPair() {
		super();
	}

	/**
	 * @param value
	 * @param name
	 */
	public ObjectPair(VC value, AC attri) {
		super();
		this.attribute = attri;
		this.value = value;
	}

	public AC getAttribute() {
		return attribute;
	}

	public void setAttribute(AC attri) {
		this.attribute = attri;
	}

	public VC getValue() {
		return value;
	}

	public void setValue(VC value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return MessageFormat.format("{0}:{1}", attribute, value);
	}

}